import request from '@/utils/request'

// 查询外包人员信息列表
export function listOutemployee(query) {
  return request({
    url: '/app/outemployee/list',
    method: 'get',
    params: query
  })
}

// 查询外包人员信息详细
export function getOutemployee(userId) {
  return request({
    url: '/app/outemployee/' + userId,
    method: 'get'
  })
}

// 新增外包人员信息
export function addOutemployee(data) {
  return request({
    url: '/app/outemployee',
    method: 'post',
    data: data
  })
}

// 修改外包人员信息
export function updateOutemployee(data) {
  return request({
    url: '/app/outemployee',
    method: 'put',
    data: data
  })
}

// 删除外包人员信息
export function delOutemployee(userId) {
  return request({
    url: '/app/outemployee/' + userId,
    method: 'delete'
  })
}
